package com.ross.mode.builder;

import com.ross.mode.builder.Builder;
import com.ross.mode.entity.Bike;

/**
 * @version 1.0.0
 * @className: Director
 * @description:
 * @author: zhangjunfa
 * @date: 2023/4/3 10:18
 */
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public Bike construct() {
        builder.buildFrame();
        builder.buildSeat();
        return builder.createBike();
    }

}
